package com.ztgf.commodity.models.vo;

import com.alibaba.fastjson.annotation.JSONField;
import com.alibaba.fastjson.serializer.ToStringSerializer;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.ztgf.common.annotations.CustomerBigDecimalSerialize;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;

/**
 * author: chenyu.wang
 * date: 2020-06-05 11:39
 * Description: 商品属性价格VO
 */
@Data
public class CommodityAttrPriceVO implements Serializable {
    @ApiModelProperty(value = "商品属性价格id")
    @JSONField(serializeUsing = ToStringSerializer.class)
    private Long id;
    @ApiModelProperty(value = "商品id")
    @JSONField(serializeUsing = ToStringSerializer.class)
    private Long goodsId;
    @ApiModelProperty(value = "税除以100率")
    private Integer taxRate;
    @ApiModelProperty(value = "单价 不填，询价(零售价)")
    @JsonSerialize(using = CustomerBigDecimalSerialize.class)
    private BigDecimal price;
    @ApiModelProperty(value = "批发价 不填，询价")
    @JsonSerialize(using = CustomerBigDecimalSerialize.class)
    private BigDecimal wholesalePrice;
    @ApiModelProperty(value = "库存数量")
    private Integer inventoryNumber;
    @ApiModelProperty(value = "尺寸 长*宽*高")
    private String commoditySize;
    @ApiModelProperty(value = "尺寸单位 0毫米、1厘米、2米")
    private Integer commoditySizeUnit;
    @ApiModelProperty(value = "商品单位")
    private Long commodityUnit;
    @ApiModelProperty(value = "库存预警")
    private Integer inventoryNumberWarning;
    @ApiModelProperty(value = "起批数量")
    private Integer batchNumber;
    @ApiModelProperty(value = "属性名称,以逗号隔开")
    private String atrrNames;
    @ApiModelProperty(value = "属性id,以逗号隔开")
    private String attrIds;
    @ApiModelProperty(value = "商品单位名称")
    private String unitName;
    @ApiModelProperty(value = "原价")
    @JsonSerialize(using = CustomerBigDecimalSerialize.class)
    private BigDecimal originalprice;

    @ApiModelProperty(value = "询盘规格型号")
    private String specificationModel;

    @ApiModelProperty(value = "购物车类型：0普通 1询盘")
    private Integer type;
}
